﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.Win32;

namespace ArmoryViewerMobile
{
    public partial class WarningForm : Form
    {
        public Form Sender { get; set; }
        public WarningForm()
        {
            InitializeComponent();
        }

        private void menuExit_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void menuContinue_Click(object sender, EventArgs e)
        {
            Sender.Show();
            this.Close();
        }

        private void chkNoMore_CheckStateChanged(object sender, EventArgs e)
        {
            if (chkNoMore.Checked)
                Program.Settings.ShowWarning = false;
            else
                Program.Settings.ShowWarning = true;
            Program.Settings.Save();
        }

        private void WarningForm_Load(object sender, EventArgs e)
        {
        }
    }
}